.class public Lcom/direction/hold/ui/PathActivity;
.super Lcom/direction/hold/ui/CommonActivity;


# static fields
.field public static v:Lcom/direction/hold/ui/PathActivity;

.field public static w:Z


# instance fields
.field public x:Ljava/lang/String;

.field private y:Ljava/util/List;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x0

    sput-boolean v0, Lcom/direction/hold/ui/PathActivity;->w:Z

    return-void
.end method

.method public constructor <init>()V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0}, Lcom/direction/hold/ui/CommonActivity;-><init>()V

    iput-object v1, p0, Lcom/direction/hold/ui/PathActivity;->x:Ljava/lang/String;

    new-instance v0, Lcom/direction/hold/ui/PathActivity$ReadRuntime;

    invoke-direct {v0}, Lcom/direction/hold/ui/PathActivity$ReadRuntime;-><init>()V

    iput-object v1, p0, Lcom/direction/hold/ui/PathActivity;->y:Ljava/util/List;

    return-void
.end method

.method private d(I)V
    .locals 2

    const/4 v1, 0x1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    sput-object v0, Lcn/cheln/explorer/actions/OperationUtil;->c:Ljava/lang/Integer;

    invoke-virtual {p0, v1}, Lcom/direction/hold/ui/PathActivity;->b(Z)V

    invoke-virtual {p0, p1}, Lcom/direction/hold/ui/PathActivity;->b(I)V

    return-void
.end method


# virtual methods
.method protected final A()V
    .locals 0

    return-void
.end method

.method public final B()V
    .locals 1

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/direction/hold/ui/PathActivity;->b(Z)V

    return-void
.end method

.method public final C()V
    .locals 1

    invoke-virtual {p0}, Lcom/direction/hold/ui/PathActivity;->l()V

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/direction/hold/ui/PathActivity;->b(Z)V

    return-void
.end method

.method public final D()V
    .locals 2

    sget-object v0, Lcom/direction/hold/ui/SlideActivity;->a:Lcom/direction/hold/ui/SlideActivity;

    iget v0, v0, Lcom/direction/hold/ui/SlideActivity;->c:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_1

    sget-object v0, Lcom/direction/hold/ui/SlideActivity;->a:Lcom/direction/hold/ui/SlideActivity;

    iget v0, v0, Lcom/direction/hold/ui/SlideActivity;->c:I

    invoke-direct {p0, v0}, Lcom/direction/hold/ui/PathActivity;->d(I)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-static {}, Lcn/cheln/explorer/actions/OperationUtil;->a()I

    move-result v0

    if-eqz v0, :cond_2

    invoke-static {}, Lcn/cheln/explorer/actions/OperationUtil;->a()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    :cond_2
    invoke-static {}, Lcn/cheln/explorer/actions/OperationUtil;->a()I

    move-result v0

    invoke-direct {p0, v0}, Lcom/direction/hold/ui/PathActivity;->d(I)V

    goto :goto_0
.end method

.method public final a(ILcn/cheln/explorer/ds/a/c;II)V
    .locals 3

    invoke-virtual {p0}, Lcom/direction/hold/ui/PathActivity;->h()[Lcn/cheln/support/adapter/c;

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity;->u:Landroid/widget/AdapterView$OnItemClickListener;

    invoke-virtual {p0}, Lcom/direction/hold/ui/PathActivity;->g()Z

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->d()V

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/support/adapter/MapAdapter;->notifyDataSetChanged()V

    new-instance v0, Lcn/cheln/support/adapter/a;

    iget-object v1, p0, Lcom/direction/hold/ui/PathActivity;->y:Ljava/util/List;

    invoke-direct {v0, v1}, Lcn/cheln/support/adapter/a;-><init>(Ljava/util/List;)V

    iget-object v1, p0, Lcom/direction/hold/ui/PathActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/support/adapter/a;->d()I

    move-result v2

    invoke-virtual {v1, v2}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->b(I)V

    iget-object v1, p0, Lcom/direction/hold/ui/PathActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v1, v0}, Lcn/cheln/support/adapter/MapAdapter;->a(Lcn/cheln/support/adapter/a;)V

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->getCount()I

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/support/adapter/MapAdapter;->notifyDataSetChanged()V

    :cond_0
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/direction/hold/ui/f;

    invoke-direct {v1, p0}, Lcom/direction/hold/ui/f;-><init>(Lcom/direction/hold/ui/PathActivity;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    iget v0, p0, Lcom/direction/hold/ui/PathActivity;->k:I

    iget-object v1, p0, Lcom/direction/hold/ui/PathActivity;->j:Ljava/util/List;

    invoke-virtual {p0, p1, p3, v0}, Lcom/direction/hold/ui/PathActivity;->a(III)V

    invoke-virtual {p0, p3, p4, p2}, Lcom/direction/hold/ui/PathActivity;->a(IILcn/cheln/explorer/ds/a/c;)V

    return-void
.end method

.method public final a(Lcn/cheln/explorer/ds/a/c;III)V
    .locals 0

    invoke-virtual {p0, p1, p2, p3, p4}, Lcom/direction/hold/ui/PathActivity;->b(Lcn/cheln/explorer/ds/a/c;III)V

    return-void
.end method

.method protected final a(Landroid/view/MenuItem;)Z
    .locals 5

    const/16 v4, 0x64

    const/4 v3, 0x1

    const/4 v2, 0x0

    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    sub-int/2addr v0, v4

    iget-object v1, p0, Lcom/direction/hold/ui/PathActivity;->a:Lcn/cheln/explorer/ds/a/d;

    iget-object v1, v1, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v1}, Ljava/util/Stack;->size()I

    move-result v1

    if-ge v0, v1, :cond_1

    invoke-virtual {p0, v2, v2}, Lcom/direction/hold/ui/PathActivity;->a(ZZ)V

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->a:Lcn/cheln/explorer/ds/a/d;

    iget-object v0, v0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->size()I

    move-result v0

    sub-int/2addr v0, v3

    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v1

    sub-int/2addr v1, v4

    sub-int/2addr v0, v1

    iget-object v1, p0, Lcom/direction/hold/ui/PathActivity;->a:Lcn/cheln/explorer/ds/a/d;

    :goto_0
    if-lez v0, :cond_0

    iget-object v2, v1, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v2}, Ljava/util/Stack;->pop()Ljava/lang/Object;

    add-int/lit8 v0, v0, -0x1

    goto :goto_0

    :cond_0
    iget-object v0, v1, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->peek()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ds/a/c;

    iget v1, v0, Lcn/cheln/explorer/ds/a/c;->a:I

    iget-object v2, p0, Lcom/direction/hold/ui/PathActivity;->o:Lcn/cheln/explorer/actions/OperationUtil;

    sget-object v2, Lcn/cheln/explorer/actions/OperationUtil;->c:Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    invoke-virtual {p0, v0, v1, v3, v2}, Lcom/direction/hold/ui/PathActivity;->a(Lcn/cheln/explorer/ds/a/c;III)V

    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Lcom/direction/hold/ui/PathActivity;->a(I)V

    move v0, v3

    :goto_1
    return v0

    :cond_1
    move v0, v2

    goto :goto_1
.end method

.method protected final b(I)V
    .locals 3

    const/4 v2, 0x1

    const/4 v1, 0x0

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    sput-object v0, Lcn/cheln/explorer/actions/OperationUtil;->c:Ljava/lang/Integer;

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->o:Lcn/cheln/explorer/actions/OperationUtil;

    invoke-static {p1}, Lcn/cheln/explorer/actions/OperationUtil;->a(I)V

    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Lcom/direction/hold/ui/PathActivity;->a(I)V

    invoke-virtual {p0, v1}, Lcom/direction/hold/ui/PathActivity;->c(I)V

    invoke-virtual {p0, v1}, Lcom/direction/hold/ui/PathActivity;->a(Z)V

    sget-object v0, Lcom/direction/hold/ui/CountActivity;->v:Lcom/direction/hold/ui/CountActivity;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/direction/hold/ui/CountActivity;->v:Lcom/direction/hold/ui/CountActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CountActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/direction/hold/ui/CountActivity;->v:Lcom/direction/hold/ui/CountActivity;

    invoke-virtual {v0, v1}, Lcom/direction/hold/ui/CountActivity;->a(Z)V

    :cond_0
    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    return-void
.end method

.method protected final b(IILcn/cheln/explorer/ds/a/c;)V
    .locals 6

    const/4 v5, 0x1

    const/4 v4, 0x0

    const/4 v3, -0x1

    iget-object v0, p3, Lcn/cheln/explorer/ds/a/c;->b:Ljava/lang/Object;

    check-cast v0, Lcn/cheln/explorer/beans/FileInfo;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "this.navTool.navEntity.peek() ------------- "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    if-nez p2, :cond_4

    move v2, v5

    :goto_0
    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/direction/hold/ui/PathActivity;->a:Lcn/cheln/explorer/ds/a/d;

    iget-object v2, v2, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v2}, Ljava/util/Stack;->peek()Ljava/lang/Object;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;)V

    if-nez p2, :cond_5

    iget-object v1, p0, Lcom/direction/hold/ui/PathActivity;->a:Lcn/cheln/explorer/ds/a/d;

    iget-object v1, v1, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v1}, Ljava/util/Stack;->size()I

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/direction/hold/ui/PathActivity;->a:Lcn/cheln/explorer/ds/a/d;

    iget-object v1, v1, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v1}, Ljava/util/Stack;->peek()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcn/cheln/explorer/ds/a/e;

    iput p1, v1, Lcn/cheln/explorer/ds/a/c;->a:I

    :cond_0
    invoke-virtual {v0}, Lcn/cheln/explorer/beans/FileInfo;->g()Ljava/lang/String;

    move-result-object v1

    sget-object v2, Lcn/cheln/explorer/ds/a/b;->c:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    iget-object v1, p0, Lcom/direction/hold/ui/PathActivity;->a:Lcn/cheln/explorer/ds/a/d;

    const-class v2, Lcn/cheln/explorer/ds/a/e;

    invoke-static {v2, v0}, Lcn/cheln/explorer/ds/a/c;->a(Ljava/lang/Class;Ljava/lang/Object;)Lcn/cheln/explorer/ds/a/c;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcn/cheln/explorer/ds/a/d;->a(Lcn/cheln/explorer/ds/a/c;)V

    :cond_1
    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->a:Lcn/cheln/explorer/ds/a/d;

    iget-object v0, v0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->a:Lcn/cheln/explorer/ds/a/d;

    iget-object v0, v0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->peek()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ds/a/c;

    iget-object v0, v0, Lcn/cheln/explorer/ds/a/c;->c:Ljava/lang/String;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->a:Lcn/cheln/explorer/ds/a/d;

    iget-object v0, v0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->peek()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ds/a/c;

    iget-object v0, v0, Lcn/cheln/explorer/ds/a/c;->c:Ljava/lang/String;

    sget-object v1, Lcn/cheln/explorer/ds/a/b;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->a:Lcn/cheln/explorer/ds/a/d;

    iget-object v0, v0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->peek()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ds/a/e;

    iput v3, v0, Lcn/cheln/explorer/ds/a/e;->a:I

    :cond_2
    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v0, v4}, Landroid/widget/ListView;->setSelection(I)V

    :cond_3
    :goto_1
    return-void

    :cond_4
    move v2, v4

    goto/16 :goto_0

    :cond_5
    if-ne p2, v5, :cond_3

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->a:Lcn/cheln/explorer/ds/a/d;

    iget-object v0, v0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->peek()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ds/a/e;

    iget v0, v0, Lcn/cheln/explorer/ds/a/e;->a:I

    if-eq v0, v3, :cond_3

    iget-object v1, p0, Lcom/direction/hold/ui/PathActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v1, v0}, Landroid/widget/ListView;->setSelection(I)V

    goto :goto_1
.end method

.method protected final b(Lcn/cheln/explorer/ds/a/c;III)V
    .locals 5

    const/4 v1, 0x0

    :try_start_0
    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->e()Lcn/cheln/support/adapter/a;

    move-result-object v0

    if-nez v0, :cond_3

    :cond_0
    move-object v0, v1

    :goto_0
    iput-object v0, p0, Lcom/direction/hold/ui/PathActivity;->j:Ljava/util/List;

    iput p3, p0, Lcom/direction/hold/ui/PathActivity;->k:I

    iput p2, p0, Lcom/direction/hold/ui/PathActivity;->l:I

    iput-object p1, p0, Lcom/direction/hold/ui/PathActivity;->m:Lcn/cheln/explorer/ds/a/c;

    iput p4, p0, Lcom/direction/hold/ui/PathActivity;->n:I

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->y:Ljava/util/List;

    if-eqz v0, :cond_1

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/direction/hold/ui/PathActivity;->y:Ljava/util/List;

    :cond_1
    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/direction/hold/ui/PathActivity;->y:Ljava/util/List;

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->m:Lcn/cheln/explorer/ds/a/c;

    iget-object v0, v0, Lcn/cheln/explorer/ds/a/c;->b:Ljava/lang/Object;

    check-cast v0, Lcn/cheln/explorer/beans/FileInfo;

    invoke-virtual {v0}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v0

    new-instance v1, Lcn/cheln/explorer/ds/sdcard/a;

    sget-boolean v2, Lcn/cheln/explorer/config/a;->b:Z

    invoke-direct {v1, v2}, Lcn/cheln/explorer/ds/sdcard/a;-><init>(Z)V

    invoke-virtual {v0, v1}, Ljava/io/File;->listFiles(Ljava/io/FilenameFilter;)[Ljava/io/File;

    move-result-object v0

    iget-object v1, p0, Lcom/direction/hold/ui/PathActivity;->y:Ljava/util/List;

    const-class v2, Lcn/cheln/explorer/beans/FileInfo;

    iget-object v3, p0, Lcom/direction/hold/ui/PathActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    iget-object v4, p0, Lcom/direction/hold/ui/PathActivity;->x:Ljava/lang/String;

    invoke-static {v1, v2, v0, v3, v4}, Lcn/cheln/support/app/a;->a(Ljava/util/List;Ljava/lang/Class;[Ljava/io/File;Landroid/content/Context;Ljava/lang/String;)Ljava/util/List;

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->y:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->e:Lcn/cheln/explorer/actions/sort/a;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    if-eqz v0, :cond_2

    :try_start_1
    iget-object v1, p0, Lcom/direction/hold/ui/PathActivity;->y:Ljava/util/List;

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->e:Lcn/cheln/explorer/actions/sort/a;

    check-cast v0, Lcn/cheln/explorer/actions/sort/ObjectSort;

    invoke-static {v1, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :cond_2
    :goto_1
    iget v0, p0, Lcom/direction/hold/ui/PathActivity;->n:I

    invoke-virtual {p0, v0, p1, p2, p3}, Lcom/direction/hold/ui/PathActivity;->a(ILcn/cheln/explorer/ds/a/c;II)V

    return-void

    :cond_3
    :try_start_2
    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->e()Lcn/cheln/support/adapter/a;

    move-result-object v0

    invoke-virtual {v0}, Lcn/cheln/support/adapter/a;->b()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_1

    :catch_1
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_1
.end method

.method public final b(Z)V
    .locals 5

    const/4 v4, 0x0

    invoke-static {p0}, Lcn/cheln/explorer/util/SDcardCheck;->a(Landroid/app/Activity;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    sget-boolean v0, Lcom/direction/hold/ui/PathActivity;->w:Z

    if-nez v0, :cond_0

    const/4 v0, 0x1

    sput-boolean v0, Lcom/direction/hold/ui/PathActivity;->w:Z

    if-nez p1, :cond_2

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->r:[Lcn/cheln/support/adapter/c;

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->u:Landroid/widget/AdapterView$OnItemClickListener;

    new-instance v0, Lcn/cheln/explorer/ds/a/e;

    new-instance v1, Lcn/cheln/explorer/beans/FileInfo;

    new-instance v2, Ljava/io/File;

    sget-object v3, Lcn/cheln/explorer/ds/a/b;->c:Ljava/lang/String;

    invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    iget-object v3, p0, Lcom/direction/hold/ui/PathActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    invoke-direct {v1, v2, v3}, Lcn/cheln/explorer/beans/FileInfo;-><init>(Ljava/io/File;Landroid/content/Context;)V

    invoke-direct {v0, v1, v4}, Lcn/cheln/explorer/ds/a/e;-><init>(Lcn/cheln/explorer/beans/FileInfo;B)V

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    invoke-virtual {p0, v0}, Lcom/direction/hold/ui/PathActivity;->b(Lcn/cheln/explorer/ds/a/c;)V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->a:Lcn/cheln/explorer/ds/a/d;

    iget-object v0, v0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->peek()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ds/a/e;

    :try_start_0
    iget v1, v0, Lcn/cheln/explorer/ds/a/c;->a:I

    const/4 v2, 0x2

    iget-object v3, p0, Lcom/direction/hold/ui/PathActivity;->o:Lcn/cheln/explorer/actions/OperationUtil;

    sget-object v3, Lcn/cheln/explorer/actions/OperationUtil;->c:Ljava/lang/Integer;

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    const/4 v4, 0x0

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    invoke-virtual {p0, v0, v1, v2, v3}, Lcom/direction/hold/ui/PathActivity;->b(Lcn/cheln/explorer/ds/a/c;III)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method

.method protected final k()V
    .locals 1

    sget-boolean v0, Lcn/cheln/explorer/config/a;->b:Z

    iput-boolean v0, p0, Lcom/direction/hold/ui/PathActivity;->t:Z

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0

    invoke-super {p0, p1}, Lcom/direction/hold/ui/CommonActivity;->onCreate(Landroid/os/Bundle;)V

    sput-object p0, Lcom/direction/hold/ui/PathActivity;->v:Lcom/direction/hold/ui/PathActivity;

    return-void
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 5

    const/16 v4, 0x17

    const/16 v3, 0x16

    const/4 v2, 0x1

    const/4 v1, 0x0

    sget-object v0, Lcn/cheln/explorer/actions/OperationUtil;->c:Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-ne v0, v2, :cond_0

    move v0, v1

    :goto_0
    return v0

    :cond_0
    invoke-static {p0}, Lcn/cheln/explorer/util/SDcardCheck;->a(Landroid/app/Activity;)Z

    move-result v0

    if-eqz v0, :cond_1

    move v0, v1

    goto :goto_0

    :cond_1
    invoke-super {p0, p1}, Lcom/direction/hold/ui/CommonActivity;->onCreateOptionsMenu(Landroid/view/Menu;)Z

    const v0, 0x7f05009a

    invoke-virtual {p0, v0}, Lcom/direction/hold/ui/PathActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v1, v3, v1, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    const v0, 0x7f0500a7

    invoke-virtual {p0, v0}, Lcom/direction/hold/ui/PathActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v1, v4, v1, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    invoke-interface {p1, v3}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f020009

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    invoke-interface {p1, v4}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f020031

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    const v0, 0x7f0800b4

    invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    invoke-interface {v0}, Landroid/view/MenuItem;->getSubMenu()Landroid/view/SubMenu;

    move v0, v2

    goto :goto_0
.end method

.method public onPrepareOptionsMenu(Landroid/view/Menu;)Z
    .locals 4

    const v3, 0x7f0500a7

    invoke-super {p0, p1}, Lcom/direction/hold/ui/CommonActivity;->onPrepareOptionsMenu(Landroid/view/Menu;)Z

    const/16 v0, 0x17

    invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    sget-boolean v1, Lcn/cheln/explorer/config/a;->b:Z

    if-eqz v1, :cond_0

    invoke-virtual {p0, v3}, Lcom/direction/hold/ui/PathActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    :goto_0
    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setTitle(Ljava/lang/CharSequence;)Landroid/view/MenuItem;

    const/4 v0, 0x1

    return v0

    :cond_0
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const v2, 0x7f0500a9

    invoke-virtual {p0, v2}, Lcom/direction/hold/ui/PathActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0, v3}, Lcom/direction/hold/ui/PathActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    goto :goto_0
.end method

.method protected onStart()V
    .locals 5

    invoke-super {p0}, Lcom/direction/hold/ui/CommonActivity;->onStart()V

    const-string v0, "com.lewa.filemgr.path_start"

    invoke-virtual {p0}, Lcom/direction/hold/ui/PathActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/direction/hold/ui/PathActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "com.lewa.filemgr.path_start.file_ext"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/direction/hold/ui/PathActivity;->x:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/direction/hold/ui/PathActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "CALLBACK_ACTION"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->x:Ljava/lang/String;

    if-eqz v0, :cond_0

    new-instance v0, Lcom/direction/hold/ui/PathActivity$2;

    invoke-direct {v0, p0}, Lcom/direction/hold/ui/PathActivity$2;-><init>(Lcom/direction/hold/ui/PathActivity;)V

    iput-object v0, p0, Lcom/direction/hold/ui/PathActivity;->u:Landroid/widget/AdapterView$OnItemClickListener;

    :cond_0
    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->i:Landroid/os/Handler;

    new-instance v1, Lcom/direction/hold/ui/g;

    invoke-direct {v1, p0}, Lcom/direction/hold/ui/g;-><init>(Lcom/direction/hold/ui/PathActivity;)V

    const-wide/16 v2, 0x14

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->a:Lcn/cheln/explorer/ds/a/d;

    iget-object v0, v0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->clear()V

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->a:Lcn/cheln/explorer/ds/a/d;

    iget-object v0, v0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    new-instance v1, Lcn/cheln/explorer/ds/a/e;

    new-instance v2, Lcn/cheln/explorer/beans/FileInfo;

    new-instance v3, Ljava/io/File;

    sget-object v4, Lcn/cheln/explorer/ds/a/b;->c:Ljava/lang/String;

    invoke-direct {v3, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-direct {v2, v3, p0}, Lcn/cheln/explorer/beans/FileInfo;-><init>(Ljava/io/File;Landroid/content/Context;)V

    sget-object v3, Lcn/cheln/explorer/ds/a/b;->a:Ljava/lang/String;

    invoke-direct {v1, v2, v3}, Lcn/cheln/explorer/ds/a/e;-><init>(Lcn/cheln/explorer/beans/FileInfo;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Ljava/util/Stack;->push(Ljava/lang/Object;)Ljava/lang/Object;

    return-void
.end method

.method public final p()V
    .locals 4

    sget-boolean v0, Lcom/direction/hold/ui/PathActivity;->w:Z

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/direction/hold/ui/PathActivity;->h()[Lcn/cheln/support/adapter/c;

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity;->u:Landroid/widget/AdapterView$OnItemClickListener;

    new-instance v0, Lcn/cheln/explorer/ds/a/e;

    new-instance v1, Lcn/cheln/explorer/beans/FileInfo;

    new-instance v2, Ljava/io/File;

    sget-object v3, Lcn/cheln/explorer/ds/a/b;->c:Ljava/lang/String;

    invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-direct {v1, v2, p0}, Lcn/cheln/explorer/beans/FileInfo;-><init>(Ljava/io/File;Landroid/content/Context;)V

    const/4 v2, 0x0

    invoke-direct {v0, v1, v2}, Lcn/cheln/explorer/ds/a/e;-><init>(Lcn/cheln/explorer/beans/FileInfo;B)V

    invoke-virtual {p0, v0}, Lcom/direction/hold/ui/PathActivity;->a(Lcn/cheln/explorer/ds/a/c;)V

    :cond_0
    return-void
.end method

.method public final s()Ljava/lang/String;
    .locals 5

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->a:Lcn/cheln/explorer/ds/a/d;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, v0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Ljava/util/Stack;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcn/cheln/explorer/ds/a/c;

    iget-object v2, p0, Lcn/cheln/explorer/ds/a/c;->c:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, v0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v2}, Ljava/util/Stack;->size()I

    move-result v2

    const/4 v3, 0x2

    if-lt v2, v3, :cond_0

    const/4 v2, 0x1

    :goto_0
    iget-object v3, v0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v3}, Ljava/util/Stack;->size()I

    move-result v3

    if-ge v2, v3, :cond_0

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, " / "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v4, v0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v4, v2}, Ljava/util/Stack;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcn/cheln/explorer/ds/a/c;

    iget-object v4, p0, Lcn/cheln/explorer/ds/a/c;->c:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_0
    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public final x()V
    .locals 2

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->e()Lcn/cheln/support/adapter/a;

    move-result-object v0

    invoke-virtual {v0}, Lcn/cheln/support/adapter/a;->b()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    iget-object v1, p0, Lcom/direction/hold/ui/PathActivity;->e:Lcn/cheln/explorer/actions/sort/a;

    check-cast v1, Lcn/cheln/explorer/actions/sort/ObjectSort;

    invoke-static {v0, v1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "----------policy "

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/direction/hold/ui/PathActivity;->e:Lcn/cheln/explorer/actions/sort/a;

    invoke-interface {v1}, Lcn/cheln/explorer/actions/sort/a;->a()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/direction/hold/ui/PathActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->notifyDataSetChanged()V

    goto :goto_0
.end method

.method protected final z()Ljava/lang/String;
    .locals 4

    const v0, 0x7f050006

    const/4 v1, 0x1

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    const v3, 0x7f050056

    invoke-virtual {p0, v3}, Lcom/direction/hold/ui/PathActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v1, v2

    invoke-virtual {p0, v0, v1}, Lcom/direction/hold/ui/PathActivity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
